package etec.foxsoft.telas;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JMenuBar;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JSeparator;
import java.awt.Font;
import javax.swing.SwingConstants;
import javax.swing.JTable;
import javax.swing.border.SoftBevelBorder;
import javax.swing.border.BevelBorder;
import javax.swing.table.DefaultTableModel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JScrollPane;

public class Agenda extends JFrame {

	private JPanel contentPane;
	private JTable table;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Agenda frame = new Agenda();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Agenda() {
		setResizable(false);
		setTitle("FoxSoft1.0V");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 880, 620);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblLogo = new JLabel("");
		lblLogo.setIcon(new ImageIcon(Agenda.class.getResource("/Imagens/Logo_Paris.png")));
		lblLogo.setBounds(10, 0, 232, 99);
		contentPane.add(lblLogo);
		
		JSeparator separator = new JSeparator();
		separator.setBounds(20, 102, 380, 14);
		contentPane.add(separator);
		
		JLabel lblNomeCentral = new JLabel("Agenda");
		lblNomeCentral.setHorizontalAlignment(SwingConstants.CENTER);
		lblNomeCentral.setFont(new Font("Tahoma", Font.PLAIN, 20));
		lblNomeCentral.setBounds(397, 90, 89, 25);
		contentPane.add(lblNomeCentral);
		
		JSeparator separator_1 = new JSeparator();
		separator_1.setBounds(483, 102, 380, 14);
		contentPane.add(separator_1);
		
		JButton botao_anterior = new JButton("Anterior");
		botao_anterior.setBounds(286, 257, 106, 25);
		contentPane.add(botao_anterior);
		
		JButton botao_fechar = new JButton("Fechar");
		botao_fechar.setIcon(new ImageIcon(Agenda.class.getResource("/Imagens/Fechar.png")));
		botao_fechar.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent arg0) {
			
			setVisible(false);
			
			
			}//Deixar Janela Oculta
		});
		botao_fechar.setBounds(739, 548, 115, 23);
		contentPane.add(botao_fechar);
		
		JButton botao_proxima = new JButton("Pr\u00F3xima");
		botao_proxima.setBounds(454, 257, 106, 25);
		contentPane.add(botao_proxima);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(10, 293, 843, 106);
		contentPane.add(scrollPane);
		
		table = new JTable();
		table.setModel(new DefaultTableModel(
			new Object[][] {
				{null, null, null, null, null, null, null},
				{null, null, null, null, null, null, null},
				{null, null, null, null, null, null, null},
				{null, null, null, null, null, null, null},
				{null, null, null, null, null, null, null},
			},
			new String[] {
				"Segunda", "Ter\u00E7a", "Quarta", "Quinta", "Sexta", "S\u00E1bado", "Domingo"
			}
		));
		table.getColumnModel().getColumn(0).setPreferredWidth(20);
		table.getColumnModel().getColumn(0).setMinWidth(20);
		table.getColumnModel().getColumn(1).setPreferredWidth(20);
		table.getColumnModel().getColumn(1).setMinWidth(20);
		table.getColumnModel().getColumn(2).setPreferredWidth(20);
		table.getColumnModel().getColumn(2).setMinWidth(20);
		table.getColumnModel().getColumn(3).setPreferredWidth(20);
		table.getColumnModel().getColumn(3).setMinWidth(20);
		table.getColumnModel().getColumn(4).setPreferredWidth(20);
		table.getColumnModel().getColumn(4).setMinWidth(20);
		table.getColumnModel().getColumn(5).setPreferredWidth(20);
		table.getColumnModel().getColumn(5).setMinWidth(20);
		table.getColumnModel().getColumn(6).setPreferredWidth(20);
		table.getColumnModel().getColumn(6).setMinWidth(20);
		scrollPane.setViewportView(table);
		
		JButton ajuda = new JButton("");
		ajuda.setIcon(new ImageIcon(Agenda.class.getResource("/Imagens/Ajuda.png")));
		ajuda.setBounds(650, 11, 80, 80);
		contentPane.add(ajuda);
		
		JButton sobre = new JButton("");
		sobre.setIcon(new ImageIcon(Agenda.class.getResource("/Imagens/Sobre.png")));
		sobre.setBounds(774, 11, 80, 80);
		contentPane.add(sobre);
		
		JButton botao_consultar = new JButton("Consultar");
		botao_consultar.setBounds(379, 412, 106, 25);
		contentPane.add(botao_consultar);
	}
}
